#define  _CRT_SECURE_NO_WARNINGS


#include<stdio.h>


int main()
{
    int n = 0, i = 0, j = 0, arr[100][100] = { 0 }, a[100] = { 0 }, b[100] = { 0 }, k = 0, flag = 1, c = 0, d = 0, x = 0, y = 0;
    scanf("%d", &n);
    for (i = 0; i < n; i++)
    {
        for (j = 0; j < n; j++)
        {
            scanf("%d", &arr[i][j]);
            a[k] += arr[i][j];
        }
        k++;
    }
    k = 0;
    for (i = 0; i < n; i++)
    {
        for (j = 0; j < n; j++)
        {
            b[k] += arr[j][i];
        }
        k++;
    }
    for (i = 0; i < n; i++)
    {
        if (a[i] % 2 != 0 || b[i] % 2 != 0)
        {
            flag = 0;
            break;
        }
    }
    if (flag == 1)
        printf("OK\n");
    else
    {
        for (i = 0; i < n; i++)
        {
            if (a[i] % 2 != 0)
            {
                c++;
                x = i;
            }
            if (b[i] % 2 != 0)
            {
                d++;
                y = i;
            }
        }
        if (c == 1 && d == 1)
            printf("%d %d\n", x + 1, y + 1);
        else
            printf("Corrupt\n");
    }
    return 0;
}